/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.tx;

import entity.establishment.OutletFood;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

/**
 *
 * @author AdminNUS
 */
@Entity
public class Cuisine implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    private String cuisineName;

    @ManyToMany (cascade = {CascadeType.PERSIST} ,mappedBy="cuisines")
    private List<OutletFood> outlets =  new ArrayList<OutletFood>();
    
    
    /**
     * @return the cuisineName
     */
    public String getCuisineName() {
        return cuisineName;
    }

    /**
     * @param cuisineName the cuisineName to set
     */
    public void setCuisineName(String cuisineName) {
        this.cuisineName = cuisineName;
    }

    /**
     * @return the outlets
     */
    public List<OutletFood> getOutlets() {
        return (List<OutletFood>) outlets;
    }

    /**
     * @param outlets the outlets to set
     */
    public void setOutlets(ArrayList<OutletFood> outlets) {
        this.outlets = outlets;
    }

   
    
}
